
#include "IClassInt.h"
#include "member_BClass.h"

using namespace BWE;

ClassInt::ClassInt() : BClass("int", true)
{

	insertMethod("int()", &ClassInt::create);
	insertMethod("int(bool)", &ClassInt::create_bool);
	insertMethod("int(char)", &ClassInt::create_char);
	insertMethod("int(short)", &ClassInt::create_short);
	insertMethod("int(int)", &ClassInt::create_int);
	insertMethod("int(long)", &ClassInt::create_long);
	insertMethod("int(real)", &ClassInt::create_real);
	insertMethod("int(float)", &ClassInt::create_float);
	insertMethod("int(double)", &ClassInt::create_double);
	insertMethod("~int()", &ClassInt::release);

	insertMethod("int =(bool)", &ClassInt::assign_bool);
	insertMethod("int =(char)", &ClassInt::assign_char);
	insertMethod("int =(short)", &ClassInt::assign_short);
	insertMethod("int =(int)", &ClassInt::assign_int);
	insertMethod("int =(long)", &ClassInt::assign_long);
	insertMethod("int =(real)", &ClassInt::assign_real);
	insertMethod("int =(float)", &ClassInt::assign_float);
	insertMethod("int =(double)", &ClassInt::assign_double);

	insertMethod("int +()", &ClassInt::positive);
	insertMethod("int -()", &ClassInt::negative);
	insertMethod("int ++()", &ClassInt::plus_plus);
	insertMethod("int --()", &ClassInt::minus_minus);

	insertMethod("int +(bool)", &ClassInt::plus_bool);
	insertMethod("int +(char)", &ClassInt::plus_char);
	insertMethod("int +(short)", &ClassInt::plus_short);
	insertMethod("int +(int)", &ClassInt::plus_int);
	insertMethod("long +(long)", &ClassInt::plus_long);
	insertMethod("long +(real)", &ClassInt::plus_real);
	insertMethod("float +(float)", &ClassInt::plus_float);
	insertMethod("double +(double)", &ClassInt::plus_double);

	insertMethod("+=(bool)", &ClassInt::plus_assign_bool);
	insertMethod("+=(char)", &ClassInt::plus_assign_char);
	insertMethod("+=(short)", &ClassInt::plus_assign_short);
	insertMethod("+=(int)", &ClassInt::plus_assign_int);
	insertMethod("+=(long)", &ClassInt::plus_assign_long);
	insertMethod("+=(real)", &ClassInt::plus_assign_real);
	insertMethod("+=(float)", &ClassInt::plus_assign_float);
	insertMethod("+=(double)", &ClassInt::plus_assign_double);

	insertMethod("int -(bool)", &ClassInt::minus_bool);
	insertMethod("int -(char)", &ClassInt::minus_char);
	insertMethod("int -(short)", &ClassInt::minus_short);
	insertMethod("int -(int)", &ClassInt::minus_int);
	insertMethod("long -(long)", &ClassInt::minus_long);
	insertMethod("long -(real)", &ClassInt::minus_real);
	insertMethod("float -(float)", &ClassInt::minus_float);
	insertMethod("double -(double)", &ClassInt::minus_double);

	insertMethod("-=(bool)", &ClassInt::minus_assign_bool);
	insertMethod("-=(char)", &ClassInt::minus_assign_char);
	insertMethod("-=(short)", &ClassInt::minus_assign_short);
	insertMethod("-=(int)", &ClassInt::minus_assign_int);
	insertMethod("-=(long)", &ClassInt::minus_assign_long);
	insertMethod("-=(real)", &ClassInt::minus_assign_real);
	insertMethod("-=(float)", &ClassInt::minus_assign_float);
	insertMethod("-=(double)", &ClassInt::minus_assign_double);

	insertMethod("int *(char)", &ClassInt::mult_char);
	insertMethod("int *(short)", &ClassInt::mult_short);
	insertMethod("int *(int)", &ClassInt::mult_int);
	insertMethod("long *(long)", &ClassInt::mult_long);
	insertMethod("long *(real)", &ClassInt::mult_real);
	insertMethod("float *(float)", &ClassInt::mult_float);
	insertMethod("double *(double)", &ClassInt::mult_double);

	insertMethod("*=(char)", &ClassInt::mult_assign_char);
	insertMethod("*=(short)", &ClassInt::mult_assign_short);
	insertMethod("*=(int)", &ClassInt::mult_assign_int);
	insertMethod("*=(long)", &ClassInt::mult_assign_long);
	insertMethod("*=(real)", &ClassInt::mult_assign_real);
	insertMethod("*=(float)", &ClassInt::mult_assign_float);
	insertMethod("*=(double)", &ClassInt::mult_assign_double);

	insertMethod("int /(char)", &ClassInt::div_char);
	insertMethod("int /(short)", &ClassInt::div_short);
	insertMethod("int /(int)", &ClassInt::div_int);
	insertMethod("long /(long)", &ClassInt::div_long);
	insertMethod("long /(real)", &ClassInt::div_real);
	insertMethod("float /(float)", &ClassInt::div_float);
	insertMethod("double /(double)", &ClassInt::div_double);

	insertMethod("/=(char)", &ClassInt::div_assign_char);
	insertMethod("/=(short)", &ClassInt::div_assign_short);
	insertMethod("/=(int)", &ClassInt::div_assign_int);
	insertMethod("/=(long)", &ClassInt::div_assign_long);
	insertMethod("/=(real)", &ClassInt::div_assign_real);
	insertMethod("/=(float)", &ClassInt::div_assign_float);
	insertMethod("/=(double)", &ClassInt::div_assign_double);

	insertMethod("int %(char)", &ClassInt::mod_char);
	insertMethod("int %(short)", &ClassInt::mod_short);
	insertMethod("int %(int)", &ClassInt::mod_int);
	insertMethod("long %(long)", &ClassInt::mod_long);
	insertMethod("long %(real)", &ClassInt::mod_real);
	insertMethod("float %(float)", &ClassInt::mod_float);
	insertMethod("double %(double)", &ClassInt::mod_double);

	insertMethod("%=(char)", &ClassInt::mod_assign_char);
	insertMethod("%=(short)", &ClassInt::mod_assign_short);
	insertMethod("%=(int)", &ClassInt::mod_assign_int);
	insertMethod("%=(long)", &ClassInt::mod_assign_long);
	insertMethod("%=(real)", &ClassInt::mod_assign_real);
	insertMethod("%=(float)", &ClassInt::mod_assign_float);
	insertMethod("%=(double)", &ClassInt::mod_assign_double);

	insertMethod("bool ==(bool)", &ClassInt::equal_bool);
	insertMethod("bool ==(char)", &ClassInt::equal_char);
	insertMethod("bool ==(short)", &ClassInt::equal_short);
	insertMethod("bool ==(int)", &ClassInt::equal_int);
	insertMethod("bool ==(long)", &ClassInt::equal_long);
	insertMethod("bool ==(real)", &ClassInt::equal_real);
	insertMethod("bool ==(float)", &ClassInt::equal_float);
	insertMethod("bool ==(double)", &ClassInt::equal_double);

	insertMethod("bool !=(bool)", &ClassInt::unequal_bool);
	insertMethod("bool !=(char)", &ClassInt::unequal_char);
	insertMethod("bool !=(short)", &ClassInt::unequal_short);
	insertMethod("bool !=(int)", &ClassInt::unequal_int);
	insertMethod("bool !=(long)", &ClassInt::unequal_long);
	insertMethod("bool !=(real)", &ClassInt::unequal_real);
	insertMethod("bool !=(float)", &ClassInt::unequal_float);
	insertMethod("bool !=(double)", &ClassInt::unequal_double);

	insertMethod("bool >(char)", &ClassInt::greater_char);
	insertMethod("bool >(short)", &ClassInt::greater_short);
	insertMethod("bool >(int)", &ClassInt::greater_int);
	insertMethod("bool >(long)", &ClassInt::greater_long);
	insertMethod("bool >(real)", &ClassInt::greater_real);
	insertMethod("bool >(float)", &ClassInt::greater_float);
	insertMethod("bool >(double)", &ClassInt::greater_double);

	insertMethod("bool <(char)", &ClassInt::less_char);
	insertMethod("bool <(short)", &ClassInt::less_short);
	insertMethod("bool <(int)", &ClassInt::less_int);
	insertMethod("bool <(long)", &ClassInt::less_long);
	insertMethod("bool <(real)", &ClassInt::less_real);
	insertMethod("bool <(float)", &ClassInt::less_float);
	insertMethod("bool <(double)", &ClassInt::less_double);

	insertMethod("bool >=(char)", &ClassInt::greater_equal_char);
	insertMethod("bool >=(short)", &ClassInt::greater_equal_short);
	insertMethod("bool >=(int)", &ClassInt::greater_equal_int);
	insertMethod("bool >=(long)", &ClassInt::greater_equal_long);
	insertMethod("bool >=(real)", &ClassInt::greater_equal_real);
	insertMethod("bool >=(float)", &ClassInt::greater_equal_float);
	insertMethod("bool >=(double)", &ClassInt::greater_equal_double);

	insertMethod("bool <=(char)", &ClassInt::less_equal_char);
	insertMethod("bool <=(short)", &ClassInt::less_equal_short);
	insertMethod("bool <=(int)", &ClassInt::less_equal_int);
	insertMethod("bool <=(long)", &ClassInt::less_equal_long);
	insertMethod("bool <=(real)", &ClassInt::less_equal_real);
	insertMethod("bool <=(float)", &ClassInt::less_equal_float);
	insertMethod("bool <=(double)", &ClassInt::less_equal_double);

}

void ClassInt::create(int argc, BValue* argv)
{
	argv[0].refer() = 0;
}
void ClassInt::create_bool(int argc, BValue* argv)
{
	bool b = argv[1];
	argv[0].refer() = (int)b;
}
void ClassInt::create_char(int argc, BValue* argv)
{
	char c = argv[1];
	argv[0].refer() = (int)c;
}
void ClassInt::create_short(int argc, BValue* argv)
{
	short s = argv[1];
	argv[0] = (int)s;
}
void ClassInt::create_int(int argc, BValue* argv)
{
	int i = argv[1];
	argv[0].refer() = i;
}
void ClassInt::create_long(int argc, BValue* argv)
{
	long long l = argv[1];
	argv[0].refer() = (int)l;
}
void ClassInt::create_real(int argc, BValue* argv)
{
	BReal r = argv[1];
	argv[0].refer() = (int)r;
}
void ClassInt::create_float(int argc, BValue* argv)
{
	float f = argv[1];
	argv[0].refer() = (int)f;
}
void ClassInt::create_double(int argc, BValue* argv)
{
	double d = argv[1];
	argv[0].refer() = (int)d;
}
void ClassInt::release(int argc, BValue* argv)
{
	argv[0].refer().clear();
}

void ClassInt::assign_bool(int argc, BValue* argv)
{
	int& v = argv[0];
	bool b = argv[1];
	v = b ? 1 : 0;
}
void ClassInt::assign_char(int argc, BValue* argv)
{
	int& v = argv[0];
	char c = argv[1];
	v = (int)c;
}
void ClassInt::assign_short(int argc, BValue* argv)
{
	int& v = argv[0];
	short s = argv[1];
	v = (int)s;
}
void ClassInt::assign_int(int argc, BValue* argv)
{
	int& v = argv[0];
	int i = argv[1];
	v = i;
}
void ClassInt::assign_long(int argc, BValue* argv)
{
	int& v = argv[0];
	long long l = argv[1];
	v = (int)l;
}
void ClassInt::assign_real(int argc, BValue* argv)
{
	int& v = argv[0];
	BReal r = argv[1];
	v = (int)r;
}
void ClassInt::assign_float(int argc, BValue* argv)
{
	int& v = argv[0];
	float f = argv[1];
	v = (int)f;
}
void ClassInt::assign_double(int argc, BValue* argv)
{
	int& v = argv[0];
	double d = argv[1];
	v = (int)d;
}

void ClassInt::positive(int argc, BValue* argv)
{
	
}
void ClassInt::negative(int argc, BValue* argv)
{
	int& v = argv[0];
	argv[0] = -v;
}
void ClassInt::plus_plus(int argc, BValue* argv)
{
	int& v = argv[0];
	argv[0] = v++;
}
void ClassInt::minus_minus(int argc, BValue* argv)
{
	int& v = argv[0];
	argv[0] = v--;
}

void ClassInt::plus_bool(int argc, BValue* argv)
{
	int v = argv[0];
	bool b = argv[1];
	argv[0] = (v + b);
}
void ClassInt::plus_char(int argc, BValue* argv)
{
	int v = argv[0];
	char c = argv[1];
	argv[0] = (v + c);
}
void ClassInt::plus_short(int argc, BValue* argv)
{
	int v = argv[0];
	short s = argv[1];
	argv[0] = (v + s);
}
void ClassInt::plus_int(int argc, BValue* argv)
{
	int v = argv[0];
	int a = argv[1];
	argv[0] = (v + a);
}
void ClassInt::plus_long(int argc, BValue* argv)
{
	int v = argv[0];
	long long l = argv[1];
	argv[0] = (v + l);
}
void ClassInt::plus_real(int argc, BValue* argv)
{
	int v = argv[0];
	BReal r = argv[1];
	argv[0] = (v + r);
}
void ClassInt::plus_float(int argc, BValue* argv)
{
	int v = argv[0];
	float f = argv[1];
	argv[0] = (v + f);
}
void ClassInt::plus_double(int argc, BValue* argv)
{
	int v = argv[0];
	double d = argv[1];
	argv[0] = (v + d);
}

void ClassInt::plus_assign_bool(int argc, BValue* argv)
{
	int& v = argv[0];
	char c = argv[1];
	v = (int)(v + c);
}
void ClassInt::plus_assign_char(int argc, BValue* argv)
{
	int& v = argv[0];
	char c = argv[1];
	v = (int)(v + c);
}
void ClassInt::plus_assign_short(int argc, BValue* argv)
{
	int& v = argv[0];
	short s = argv[1];
	v = (int)(v + s);
}
void ClassInt::plus_assign_int(int argc, BValue* argv)
{
	int& v = argv[0];
	int i = argv[1];
	v = v + i;
}
void ClassInt::plus_assign_long(int argc, BValue* argv)
{
	int& v = argv[0];
	long long l = argv[1];
	v = (int)(v + l);
}
void ClassInt::plus_assign_real(int argc, BValue* argv)
{
	int& v = argv[0];
	BReal r = argv[1];
	v = (int)(v + r);
}
void ClassInt::plus_assign_float(int argc, BValue* argv)
{
	int& v = argv[0];
	float f = argv[1];
	v = (int)(v + f);
}
void ClassInt::plus_assign_double(int argc, BValue* argv)
{
	int& v = argv[0];
	double d = argv[1];
	v = (int)(v + d);
}

void ClassInt::minus_bool(int argc, BValue* argv)
{
	int v = argv[0];
	bool b = argv[1];
	argv[0] = (v - b);
}
void ClassInt::minus_char(int argc, BValue* argv)
{
	int v = argv[0];
	char c = argv[1];
	argv[0] = (v - c);
}
void ClassInt::minus_short(int argc, BValue* argv)
{
	int v = argv[0];
	short s = argv[1];
	argv[0] = (v - s);
}
void ClassInt::minus_int(int argc, BValue* argv)
{
	int v = argv[0];
	int i = argv[1];
	argv[0] = (v - i);
}
void ClassInt::minus_long(int argc, BValue* argv)
{
	int v = argv[0];
	long long l = argv[1];
	argv[0] = (v - l);
}
void ClassInt::minus_real(int argc, BValue* argv)
{
	int v = argv[0];
	BReal r = argv[1];
	argv[0] = (v - r);
}
void ClassInt::minus_float(int argc, BValue* argv)
{
	int v = argv[0];
	float f = argv[1];
	argv[0] = (v - f);
}
void ClassInt::minus_double(int argc, BValue* argv)
{
	int v = argv[0];
	double d = argv[1];
	argv[0] = (v - d);
}

void ClassInt::minus_assign_bool(int argc, BValue* argv)
{
	int& v = argv[0];
	bool b = argv[1];
	v = (int)(v - b);
}
void ClassInt::minus_assign_char(int argc, BValue* argv)
{
	int& v = argv[0];
	char c = argv[1];
	v = (int)(v - c);
}
void ClassInt::minus_assign_short(int argc, BValue* argv)
{
	int& v = argv[0];
	short s = argv[1];
	v = (int)(v - s);
}
void ClassInt::minus_assign_int(int argc, BValue* argv)
{
	int& v = argv[0];
	int i = argv[1];
	v -= i;
}
void ClassInt::minus_assign_long(int argc, BValue* argv)
{
	int& v = argv[0];
	long long l = argv[1];
	v = (int)(v - l);
}
void ClassInt::minus_assign_real(int argc, BValue* argv)
{
	int& v = argv[0];
	BReal r = argv[1];
	v = (int)(v - r);
}
void ClassInt::minus_assign_float(int argc, BValue* argv)
{
	int& v = argv[0];
	float f = argv[1];
	v = (int)(v - f);
}
void ClassInt::minus_assign_double(int argc, BValue* argv)
{
	int& v = argv[0];
	double d = argv[1];
	v = (int)(v - d);
}

void ClassInt::mult_char(int argc, BValue* argv)
{
	int v = argv[0];
	char c = argv[1];
	argv[0] = (v * c);
}
void ClassInt::mult_short(int argc, BValue* argv)
{
	int v = argv[0];
	short s = argv[1];
	argv[0] = (v * s);
}
void ClassInt::mult_int(int argc, BValue* argv)
{
	int v = argv[0];
	int i = argv[1];
	argv[0] = (v * i);
}
void ClassInt::mult_long(int argc, BValue* argv)
{
	int v = argv[0];
	long long l = argv[1];
	argv[0] = (v * l);
}
void ClassInt::mult_real(int argc, BValue* argv)
{
	int v = argv[0];
	BReal r = argv[1];
	argv[0] = (v * r);
}
void ClassInt::mult_float(int argc, BValue* argv)
{
	int v = argv[0];
	float f = argv[1];
	argv[0] = (v * f);
}
void ClassInt::mult_double(int argc, BValue* argv)
{
	int v = argv[0];
	double d = argv[1];
	argv[0] = (v * d);
}

void ClassInt::mult_assign_char(int argc, BValue* argv)
{
	int& v = argv[0];
	char c = argv[1];
	v = (int)(v * c);
}
void ClassInt::mult_assign_short(int argc, BValue* argv)
{
	int& v = argv[0];
	short s = argv[1];
	v = (int)(v * s);
}
void ClassInt::mult_assign_int(int argc, BValue* argv)
{
	int& v = argv[0];
	int i = argv[1];
	v *= i;
}
void ClassInt::mult_assign_long(int argc, BValue* argv)
{
	int& v = argv[0];
	long long l = argv[1];
	v = (int)(v * l);
}
void ClassInt::mult_assign_real(int argc, BValue* argv)
{
	int& v = argv[0];
	BReal r = argv[1];
	v = (int)(v * r);
}
void ClassInt::mult_assign_float(int argc, BValue* argv)
{
	int& v = argv[0];
	float f = argv[1];
	v = (int)(v * f);
}
void ClassInt::mult_assign_double(int argc, BValue* argv)
{
	int& v = argv[0];
	double d = argv[1];
	v = (int)(v * d);
}

void ClassInt::div_char(int argc, BValue* argv)
{
	int v = argv[0];
	char c = argv[1];
	argv[0] = (v / c);
}
void ClassInt::div_short(int argc, BValue* argv)
{
	int v = argv[0];
	short s = argv[1];
	argv[0] = (v / s);
}
void ClassInt::div_int(int argc, BValue* argv)
{
	int v = argv[0];
	int i = argv[1];
	argv[0] = (v / i);
}
void ClassInt::div_long(int argc, BValue* argv)
{
	int v = argv[0];
	long long l = argv[1];
	argv[0] = (v / l);
}
void ClassInt::div_real(int argc, BValue* argv)
{
	int v = argv[0];
	BReal r = argv[1];
	argv[0] = (v / r);
}
void ClassInt::div_float(int argc, BValue* argv)
{
	int v = argv[0];
	float f = argv[1];
	argv[0] = (v / f);
}
void ClassInt::div_double(int argc, BValue* argv)
{
	int v = argv[0];
	double d = argv[1];
	argv[0] = (v / d);
}

void ClassInt::div_assign_char(int argc, BValue* argv)
{
	int& v = argv[0];
	char c = argv[1];
	v = (int)(v / c);
}
void ClassInt::div_assign_short(int argc, BValue* argv)
{
	int& v = argv[0];
	short s = argv[1];
	v = (int)(v / s);
}
void ClassInt::div_assign_int(int argc, BValue* argv)
{
	int& v = argv[0];
	int i = argv[1];
	v /= i;
}
void ClassInt::div_assign_long(int argc, BValue* argv)
{
	int& v = argv[0];
	long long l = argv[1];
	v = (int)(v / l);
}
void ClassInt::div_assign_real(int argc, BValue* argv)
{
	int& v = argv[0];
	BReal r = argv[1];
	v = (int)(v / r);
}
void ClassInt::div_assign_float(int argc, BValue* argv)
{
	int& v = argv[0];
	float f = argv[1];
	v = (int)(v / f);
}
void ClassInt::div_assign_double(int argc, BValue* argv)
{
	int& v = argv[0];
	double d = argv[1];
	v = (int)(v / d);
}

void ClassInt::mod_char(int argc, BValue* argv)
{
	int v = argv[0];
	char c = argv[1];
	argv[0] = (v % c);
}
void ClassInt::mod_short(int argc, BValue* argv)
{
	int v = argv[0];
	short s = argv[1];
	argv[0] = (v % s);
}
void ClassInt::mod_int(int argc, BValue* argv)
{
	int v = argv[0];
	int i = argv[1];
	argv[0] = (v % i);
}
void ClassInt::mod_long(int argc, BValue* argv)
{
	int v = argv[0];
	long long l = argv[1];
	argv[0] = (v % (int)l);
}
void ClassInt::mod_real(int argc, BValue* argv)
{
	int v = argv[0];
	BReal r = argv[1];
	argv[0] = (v % (int)r);
}
void ClassInt::mod_float(int argc, BValue* argv)
{
	int v = argv[0];
	float f = argv[1];
	argv[0] = (v % (int)f);
}
void ClassInt::mod_double(int argc, BValue* argv)
{
	int v = argv[0];
	double d = argv[1];
	argv[0] = (v % (int)d);
}

void ClassInt::mod_assign_char(int argc, BValue* argv)
{
	int& v = argv[0];
	char c = argv[1];
	v %= c;
}
void ClassInt::mod_assign_short(int argc, BValue* argv)
{
	int& v = argv[0];
	short s = argv[1];
	v %= s;
}
void ClassInt::mod_assign_int(int argc, BValue* argv)
{
	int& v = argv[0];
	int i = argv[1];
	v %= i;
}
void ClassInt::mod_assign_long(int argc, BValue* argv)
{
	int& v = argv[0];
	long long l = argv[1];
	v %= (int)l;
}
void ClassInt::mod_assign_real(int argc, BValue* argv)
{
	int& v = argv[0];
	BReal r = argv[1];
	v %= (int)r;
}
void ClassInt::mod_assign_float(int argc, BValue* argv)
{
	int& v = argv[0];
	float f = argv[1];
	v %= (int)f;
}
void ClassInt::mod_assign_double(int argc, BValue* argv)
{
	int& v = argv[0];
	double d = argv[1];
	v %= (int)d;
}

void ClassInt::equal_bool(int argc, BValue* argv)
{
	int v = argv[0];
	bool b = argv[1];
	argv[0] = (v == (int)b);
}
void ClassInt::equal_char(int argc, BValue* argv)
{
	int v = argv[0];
	char c = argv[1];
	argv[0] = (v == c);
}
void ClassInt::equal_short(int argc, BValue* argv)
{
	int v = argv[0];
	short s = argv[1];
	argv[0] = (v == s);
}
void ClassInt::equal_int(int argc, BValue* argv)
{
	int v = argv[0];
	int i = argv[1];
	argv[0] = (v == i);
}
void ClassInt::equal_long(int argc, BValue* argv)
{
	int v = argv[0];
	long long l = argv[1];
	argv[0] = (v == l);
}
void ClassInt::equal_real(int argc, BValue* argv)
{
	int v = argv[0];
	BReal r = argv[1];
	argv[0] = (v == r);
}
void ClassInt::equal_float(int argc, BValue* argv)
{
	int v = argv[0];
	float f = argv[1];
	argv[0] = (v == f);
}
void ClassInt::equal_double(int argc, BValue* argv)
{
	int v = argv[0];
	double d = argv[1];
	argv[0] = (v == d);
}

void ClassInt::unequal_bool(int argc, BValue* argv)
{
	int v = argv[0];
	bool b = argv[1];
	argv[0] = ((bool)v != b);
}
void ClassInt::unequal_char(int argc, BValue* argv)
{
	int v = argv[0];
	char c = argv[1];
	argv[0] = (v != c);
}
void ClassInt::unequal_short(int argc, BValue* argv)
{
	int v = argv[0];
	short s = argv[1];
	argv[0] = (v != s);
}
void ClassInt::unequal_int(int argc, BValue* argv)
{
	int v = argv[0];
	int i = argv[1];
	argv[0] = (v != i);
}
void ClassInt::unequal_long(int argc, BValue* argv)
{
	int v = argv[0];
	long long l = argv[1];
	argv[0] = (v != l);
}
void ClassInt::unequal_real(int argc, BValue* argv)
{
	int v = argv[0];
	BReal r = argv[1];
	argv[0] = (v != r);
}
void ClassInt::unequal_float(int argc, BValue* argv)
{
	int v = argv[0];
	float f = argv[1];
	argv[0] = (v != f);
}
void ClassInt::unequal_double(int argc, BValue* argv)
{
	int v = argv[0];
	double d = argv[1];
	argv[0] = (v != d);
}

void ClassInt::greater_char(int argc, BValue* argv)
{
	int v = argv[0];
	char c = argv[1];
	argv[0] = (v > c);
}
void ClassInt::greater_short(int argc, BValue* argv)
{
	int v = argv[0];
	short s = argv[1];
	argv[0] = (v > s);
}
void ClassInt::greater_int(int argc, BValue* argv)
{
	int v = argv[0];
	int i = argv[1];
	argv[0] = (v > i);
}
void ClassInt::greater_long(int argc, BValue* argv)
{
	int v = argv[0];
	long long l = argv[1];
	argv[0] = (v > l);
}
void ClassInt::greater_real(int argc, BValue* argv)
{
	int v = argv[0];
	BReal r = argv[1];
	argv[0] = (v > r);
}
void ClassInt::greater_float(int argc, BValue* argv)
{
	int v = argv[0];
	float f = argv[1];
	argv[0] = (v > f);
}
void ClassInt::greater_double(int argc, BValue* argv)
{
	int v = argv[0];
	double d = argv[1];
	argv[0] = (v > d);
}

void ClassInt::less_char(int argc, BValue* argv)
{
	int v = argv[0];
	char c = argv[1];
	argv[0] = (v < c);
}
void ClassInt::less_short(int argc, BValue* argv)
{
	int v = argv[0];
	short s = argv[1];
	argv[0] = (v < s);
}
void ClassInt::less_int(int argc, BValue* argv)
{
	int v = argv[0];
	int i = argv[1];
	argv[0] = (v < i);
}
void ClassInt::less_long(int argc, BValue* argv)
{
	int v = argv[0];
	long long l = argv[1];
	argv[0] = (v < l);
}
void ClassInt::less_real(int argc, BValue* argv)
{
	int v = argv[0];
	BReal r = argv[1];
	argv[0] = (v < r);
}
void ClassInt::less_float(int argc, BValue* argv)
{
	int v = argv[0];
	float f = argv[1];
	argv[0] = (v < f);
}
void ClassInt::less_double(int argc, BValue* argv)
{
	int v = argv[0];
	double d = argv[1];
	argv[0] = (v < d);
}

void ClassInt::greater_equal_char(int argc, BValue* argv)
{
	int v = argv[0];
	char c = argv[1];
	argv[0] = (v >= c);
}
void ClassInt::greater_equal_short(int argc, BValue* argv)
{
	int v = argv[0];
	short s = argv[1];
	argv[0] = (v >= s);
}
void ClassInt::greater_equal_int(int argc, BValue* argv)
{
	int v = argv[0];
	int i = argv[1];
	argv[0] = (v >= i);
}
void ClassInt::greater_equal_long(int argc, BValue* argv)
{
	int v = argv[0];
	long long l = argv[1];
	argv[0] = (v >= l);
}
void ClassInt::greater_equal_real(int argc, BValue* argv)
{
	int v = argv[0];
	BReal r = argv[1];
	argv[0] = (v >= r);
}
void ClassInt::greater_equal_float(int argc, BValue* argv)
{
	int v = argv[0];
	float f = argv[1];
	argv[0] = (v >= f);
}
void ClassInt::greater_equal_double(int argc, BValue* argv)
{
	int v = argv[0];
	double d = argv[1];
	argv[0] = (v >= d);
}

void ClassInt::less_equal_char(int argc, BValue* argv)
{
	int v = argv[0];
	char c = argv[1];
	argv[0] = (v <= c);
}
void ClassInt::less_equal_short(int argc, BValue* argv)
{
	int v = argv[0];
	short s = argv[1];
	argv[0] = (v <= s);
}
void ClassInt::less_equal_int(int argc, BValue* argv)
{
	int v = argv[0];
	int i = argv[1];
	argv[0] = (v <= i);
}
void ClassInt::less_equal_long(int argc, BValue* argv)
{
	int v = argv[0];
	long long l = argv[1];
	argv[0] = (v <= l);
}
void ClassInt::less_equal_real(int argc, BValue* argv)
{
	int v = argv[0];
	BReal r = argv[1];
	argv[0] = (v <= r);
}
void ClassInt::less_equal_float(int argc, BValue* argv)
{
	int v = argv[0];
	float f = argv[1];
	argv[0] = (v <= f);
}
void ClassInt::less_equal_double(int argc, BValue* argv)
{
	int v = argv[0];
	double d = argv[1];
	argv[0] = (v <= d);
}
